<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分页器</title>
    <style>
        .box{
            width: 600px;
            height: 40px;
            position: relative;
            margin: 10px auto;
            background-color: #ffffff;
            border: 1px solid gray;
        }
        .box div{
            float: left;
            font-size: 12px;
            font-family: '雅黑';
            padding: 5px;
            margin-top: 7px;
            margin-left: 10px;
            background-color: gold;
        }
        #div{
            background-color: #ffffff;
        }
        #box-1{
            margin-left: 115px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div id="box-1">上一页</div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div id="div">...</div>
        <div>17</div>
        <div>18</div>
        <div>19</div>
        <div>20</div>
        <div>下一页</div>
    </div>
</body>
</html>